This script takes a single argument, either start or stop, which starts or stops the sendmail daemon respectively. You must be superuser (root) to use this script. For example, to stop sendmail, use the following command:
When /etc/init.d/mail is called with the start argument, it verifies the existence and permissions of various sendmail related files and directories (see "sendmail Related Files and Directories"). If a required component such as the /var/spool/mqueue directory is missing, the script creates it. For more complex components, such as /etc/aliases, the script exits with a message./etc/init.d/mail stop
When the /etc/init.d/mail script is called with the stop argument, it kills all running sendmail processes with a SIGTERM signal.
Note: Station start-up includes an automatic call to the /etc/init.d/mail script with the start argument. If station start-up runs in verbose mode (that is, /etc/chkconfig verbose on), the following message appears, verifying that sendmail has been started:
For more information, examine the /etc/init.d/mail script.Mailer daemons: sendmail
The configmail script allows the user to interact with several sendmail parameters. These parameters are equivalent to sendmail.cf macros and classes. You can verify the current parameter settings, set specific parameters, issue a quick setup command, and get some basic online help. configmail stores your changes in the sendmail.params file, which is read by sendmail at startup time.